import request from '@/utils/request'

// 查询签到规则列表
export function listSignRule(query) {
  return request({
    url: '/system/SignRule/list',
    method: 'get',
    params: query
  })
}

// 查询签到规则详细
export function getSignRule(signTimes) {
  return request({
    url: '/system/SignRule/' + signTimes,
    method: 'get'
  })
}

// 新增签到规则
export function addSignRule(data) {
  return request({
    url: '/system/SignRule',
    method: 'post',
    data: data
  })
}

// 修改签到规则
export function updateSignRule(data) {
  return request({
    url: '/system/SignRule',
    method: 'put',
    data: data
  })
}

// 删除签到规则
export function delSignRule(signTimes) {
  return request({
    url: '/system/SignRule/' + signTimes,
    method: 'delete'
  })
}
